package com.yunlankeji.stemcells.activity.mine;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import android.os.Bundle;

import com.yunlankeji.ganxibaozhijia.R;
import com.yunlankeji.stemcells.adapter.MyAdapter;
import com.yunlankeji.stemcells.adapter.Project_of_focusAdapter;
import com.yunlankeji.stemcells.model.request.project_of_focus;

import java.util.ArrayList;
import java.util.List;

public class Mine_projects_of_focusActivity extends AppCompatActivity {
    RecyclerView recyclerView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mine_projects_of_focus);


        recyclerView = findViewById(R.id.mine_project_of_focus_RecyclerView);

        List<project_of_focus> project_of_focusList = new ArrayList<>();
        project_of_focus project_of_focus1 = new project_of_focus("123,123 ","123","关注度  123","已关注",R.mipmap.account);
        project_of_focusList.add(project_of_focus1);
        LinearLayoutManager layoutManager = new LinearLayoutManager(this);
        recyclerView.setLayoutManager(layoutManager);

        Project_of_focusAdapter project_of_focus = new Project_of_focusAdapter(project_of_focusList);
        recyclerView.setAdapter(project_of_focus);
    }
}